{if $type != 1}
<form action="{:U('Price/procurement_statistics')}" method="post" target="_blank">
<input name="type" type="hidden" value="1"/>
	<div class="searchBar" align="center">
		<div class="searchContent"  align="center">
					<ul class="searchContent">
					<li style="width:160px;">
						<input name="starttime" class="date" type="text" value="{$starttime}"/><a class="inputDateButton" href="javascript:;">选择</a>
					  </li>
					<li style="width:160px;">
						<input name="endtime" class="date" type="text" value="{$endtime}"/><a class="inputDateButton" href="javascript:;">选择</a>
					</li>
					<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
					<div class="buttonActive"><div class="buttonContent"><button type="reset">清空</button></div></div>
					</ul>
					</div>
	</div>
</form>
{else}

        <table width="100%" cellspacing="1" cellpadding="0" border="1">
             <thead>
      		<tr align="center">
				<th width="50">下单日期</th>
				<th width="200">订单编号</th>
				<th width="50">品类</th>
				<th width="50">商品名称</th>
				<th width="50">销售数量</th>
				<th width="50">单价</th>
				<th width="50">小计</th>
				<th width="50">BV</th>
				<th width="50">毛利</th>
				<th width="50">供应商</th>
			</tr>
      	</thead>
            	<tbody>
<volist name="list" id="vo">
      			<tr target="sid_user" align="center">
      			<td width="50">{$vo['add_time']}</td>
				<td width="50">'{$vo['sn']}</td>
				<td width="50">{$vo['mname']}</td>
				<td width="200">{$vo['product_name']}</td>
				<td width="50">{$vo['number']}</td>
				<td width="50">{$vo['price']/100|number_format=###,2,'.',''}</td>
				<td width="50">{$vo['priceall']/100|number_format=###,2,'.',''}</td>
				<td width="50">{$vo['BV']/100|number_format=###,2,'.',''}</td>
				<td width="50">{$vo['priceall']/100|number_format=###,2,'.',''}</td>
				<td width="50">{$vo['gys']}</td>
		</tr>
		</volist>
      	</tbody>
        </table>
        {/if}